<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Combination extends Model
{

    use HasDateTimeFormatter;
    use SoftDeletes;
    protected $table = 'combination';
    protected $guarded = [];

    public function userRegimental()
    {
        return $this->hasOne(UserInfo::class,'id','uid');
    }

    public function groupGoods()
    {
        return $this->hasMany(GroupGood::class,'id','group_id');
    }

}
